Pass orientation property to accessible
authorMatthias Clasen <mclasen@redhat.com>
Mon, 12 Oct 2020 04:19:55 +0000 (00:19 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 12 Oct 2020 19:10:40 +0000 (15:10 -0400)
We should set the accessible properties we have,
where they make sense. So set orientation, if the
widget is orientable.

gtk/gtkwidget.c

index af1f84c05136ca98c34eb435dbc8745cbae0773d..a0e2d5ed13b74206c0a5754f156c289cf509b049 100644 (file)
@@ -12143,6 +12143,10 @@ gtk_widget_update_orientation (GtkWidget      *widget,
       gtk_widget_add_css_class (widget, "vertical");
       gtk_widget_remove_css_class (widget, "horizontal");
     }
+
+  gtk_accessible_update_property (GTK_ACCESSIBLE (widget),
+                                  GTK_ACCESSIBLE_PROPERTY_ORIENTATION, orientation,
+                                  -1);
 }
 
 /**